package com.bdqn.crm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.bdqn.crm.mapper.CstLostMapper;
import com.bdqn.crm.mybatis.ServiceImpl;
import com.bdqn.crm.pojo.CstLost;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class CstLostServiceImpl extends ServiceImpl<CstLostMapper, CstLost> implements CstLostService {
    @Resource
    private CstLostMapper cstLostMapper;
    @Override
    public IPage<CstLost> page(String lstCustName, String lstCustManagerName, Page page) {
        return super.getPage(page,new CstLost(lstCustName,lstCustManagerName));
    }

    @Override
    public CstLost selectId(Long lstId) {
        return cstLostMapper.selectId(lstId);
    }
}
